package com.zc.app.shiro.session.mgt;

import org.apache.shiro.session.mgt.SimpleSession;

/**
 * Created by zc on 2016/7/19.
 */
public class OnlineSession  extends SimpleSession {


    private static final long serialVersionUID = 24757276219995988L;

    private String userAgent;
    private OnlineStatus status = OnlineStatus.on_line;
    private String systemHost;


    public static enum OnlineStatus {
        on_line("在线"), hidden("隐身"), force_logout("强制退出");
        private final String info;

        private OnlineStatus(String info) {
            this.info = info;
        }

        public String getInfo() {
            return info;
        }
    }


    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public OnlineStatus getStatus() {
        return status;
    }

    public void setStatus(OnlineStatus status) {
        this.status = status;
    }

    public String getSystemHost() {
        return systemHost;
    }

    public void setSystemHost(String systemHost) {
        this.systemHost = systemHost;
    }
}
